package org.gjy.m8.regexp;

import org.junit.Test;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-08-07 09:10:52
 */
public class CommonTest {

    @Test
    public void test1() {
        String pattern = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$";
        Pattern compile = Pattern.compile(pattern);
        Matcher matcher = compile.matcher("15855859457");
        System.out.println(matcher.matches());
    }

}
